﻿<BadHabit_WPFTools:ShapedWindow
    x:Name="window"
    x:Class="BadHabit.Factory.Windows.TeamEffortReport"
    xmlns:BadHabit_WPFTools="clr-namespace:BadHabit.WPFTools;assembly=BadHabit.WPFTools"        
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
    Title="{x:Static props:Resources.Team_Effort_Report}"
    Width="800"                  
    Height="500"
    
    xmlns:props="clr-namespace:BadHabit.Factory.Properties"              
    
    Style="{StaticResource NormalWindow}"
    
    WindowStartupLocation="CenterOwner"
    
    ResizeMode="CanResize"
    Loaded="window_Loaded"
    Icon="/Images/WindowsIcons/Factory.ico"
    >
                                
                <Grid  Background="{StaticResource GradientSilverTubeBrush}">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    
                    <ToolBar Grid.Row="0" HorizontalAlignment="Stretch">

            <Menu>
                
                <MenuItem
                            x:Name="previousMonthButton"
                    Style="{StaticResource ToolBarMenuItem}"                                
                            Click="previousMonthButton_Click"
                            Header="{x:Static props:Resources.Previous}">
                    <MenuItem.Icon>
                        <Image Source="/Images/ToolBar/LeftArrow.png" Stretch="Uniform" Width="32" Height="32"/>
                    </MenuItem.Icon>
                </MenuItem>

                <MenuItem                           
                            x:Name="nextMonthButton"
                    Style="{StaticResource ToolBarMenuItem}"
                                
                            Click="nextMonthButton_Click"
                            Header="{x:Static props:Resources.Next}">
                    <MenuItem.Icon>
                        <Image Source="/Images/ToolBar/RightArrow.png" Stretch="Uniform" Width="32" Height="32"/>
                    </MenuItem.Icon>
                </MenuItem>
            </Menu>

                
                    </ToolBar>

        <Border
                        Grid.Row="1"                
                        Style="{StaticResource RoundBorder}"
                        Margin="3">
            
            <FlowDocumentScrollViewer
                        x:Name="flowDocumentViewer"
                        Grid.Row="1"
                        HorizontalContentAlignment="Center"
                        
                        HorizontalAlignment="Stretch"
                        VerticalAlignment="Stretch"
                        Margin="0,0,0,0"
                        MinZoom="50"                
                        Zoom="100"
                        MaxZoom="100"/>
        </Border>

        
                </Grid>
                                
    
    
</BadHabit_WPFTools:ShapedWindow>
